<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>易买网 - 首页</title>
    <link type="text/css" rel="stylesheet" href="/css/style.css"/>
    <script type="text/javascript" src="/scripts/function.js"></script>
</head>

<body>
<%@ include file="/WEB-INF/common/head.jsp" %>
<div id="position" class="wrap">
    您现在的位置：<a href="/index">易买网</a> &gt; 购物车
</div>
<div class="wrap">
    <div id="shopping">
        <form action="/order/shopping_result">
            <table>
                <tr>
                    <th width="584">商品名称</th>
                    <th width="136">商品价格</th>
                    <th width="161">购买数量</th>
                    <th width="59">操作</th>
                </tr>
                <c:forEach items="${sessionScope.SHOPPING_CART_IN_SESSION}" var="product">
                    <tr id="product_id_1">
                        <td class="thumb"><img src="${product.fileName}"/><a
                                href="product-view.html">${product.name}</a></td>
                        <td class="price" id="price_id_1">
                            <span>￥${product.price}</span>
                            <input type="hidden" value="99"/>
                        </td>
                        <td class="number">
                            <dl>
                                <dd onclick="reloadPrice(1,false);">-</dd>
                                <dt><input id="number_id_1" type="text" name="number" value="${product.count}"
                                           disabled="disabled"/>
                                </dt>
                                <dd onclick="reloadPrice(1,true);">+</dd>
                            </dl>
                        </td>
                        <td class="delete"><a href="javascript:delShopping(1);">删除</a></td>
                    </tr>
                </c:forEach>
            </table>
            <div class="button"><input type="submit" value=""/></div>
        </form>
    </div>
    <script type="text/javascript">
    </script>
</div>
<%@ include file="/WEB-INF/common/footer.jsp" %>
</body>
</html>
